public class 回文数 {
    
    public static void main(String[] args) {
        
        

    }

    public static boolean isPalindrome(int x) {
        
        StringBuilder builder = new StringBuilder(String.valueOf(x));

        if(builder.toString().equals(builder.reverse().toString())){

            return true;
        }

        return false;
    }
}
